package com.ophiux.wechat.model;

/**
 * 微信公众号支付-普通商户-统一下单返回实体
 * @author chenh
 * 2016-11-18
 */
public class UnifiedOrderResponse {

	/**
	 * 错误编码,
	 * 200     代表成功
	 */
	private String error_code;
	/**
	 * 错误消息
	 */
	private String error_msg;
	/**
	 * 交易类型
	 */
	private String trade_type;
	/**
	 * 预支付交易会话标识
	 */
	private String prepay_id;
	/**
	 * 二维码链接
	 * trade_type为NATIVE时有返回
	 */
	private String code_url;
	
	public String getError_code() {
		return error_code;
	}
	public void setError_code(String error_code) {
		this.error_code = error_code;
	}
	public String getError_msg() {
		return error_msg;
	}
	public void setError_msg(String error_msg) {
		this.error_msg = error_msg;
	}
	public String getTrade_type() {
		return trade_type;
	}
	public void setTrade_type(String trade_type) {
		this.trade_type = trade_type;
	}
	public String getPrepay_id() {
		return prepay_id;
	}
	public void setPrepay_id(String prepay_id) {
		this.prepay_id = prepay_id;
	}
	public String getCode_url() {
		return code_url;
	}
	public void setCode_url(String code_url) {
		this.code_url = code_url;
	}
	@Override
	public String toString() {
		return "UnifiedOrderResponse [error_code=" + error_code
				+ ", error_msg=" + error_msg + ", trade_type=" + trade_type
				+ ", prepay_id=" + prepay_id + ", code_url=" + code_url + "]";
	}
	
	
	
}
